const https = require("https");
const fs = require("fs");
var express = require('express');
var port = 3000;

var app = express();
app.use('/', express.static('../'));

https
    .createServer(
        {
            key: fs.readFileSync("key.pem"),
            cert: fs.readFileSync("cert.pem"),
        },
        app
    ).listen(port, function () {
        console.log("Survml Dev Server listening on port " + port + ". ");
    });
